package com.example.tableapplication;


import android.view.View;
import android.widget.Button;

/**
 * TableRow 实现表格的行
 */
public class TableRow {
    private TableCell[] cell;
    private View view;
    public TableRow(TableCell[] cell) {
        this.cell = cell;
    }
    public TableRow(View view) {
        this.view = view;
    }
    public int getSize() {
        return cell.length;
    }
    public TableCell getCellValue(int index) {
        if (index >= cell.length)
            return null;
        return cell[index];
    }

}